import request from '@/utils/request'

// 查询日程提醒列表
export function listCalendar(query) {
  return request({
    url: `/situation/calendar/list`,
    method: 'get',
    params: query
  })
}

// 查询日程提醒详细
export function getCalendar(id) {
  return request({
    url: '/situation/calendar/' + id,
    method: 'get'
  })
}

// 新增日程提醒
export function addCalendar(data) {
  return request({
    url: '/situation/calendar',
    method: 'post',
    data: data
  })
}

// 修改日程提醒
export function updateCalendar(data) {
  return request({
    url: '/situation/calendar',
    method: 'put',
    data: data
  })
}

// 删除日程提醒
export function delCalendar(id) {
  return request({
    url: '/situation/calendar/' + id,
    method: 'delete'
  })
}
